﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsOrderManagement
{
    public static class initial
    {
       
        

        public  static int OrderID =2;
        //商品列表
        public static List<Product> products { get; } = new List<Product>
        {
            new Product("1", "苹果", 13.99m),
            new Product("2", "香蕉", 6.99m),
            new Product("3", "橘子", 6.99m),
            new Product("4", "草莓", 16.6m)
        };

        //用户列表
        public static List<Customer> customers { get; } = new List<Customer>
        {new Customer("1", "甲", "13533"),
         new Customer("2", "乙", "16420"),
         new Customer("3", "丙", "18893")
        };

        //OrderService里面包含着order列表
        public static OrderService orderService = new OrderService
        {
            orders = new List<Order>()
                {new Order("0",initial.customers[0],(new DateTime(2023,3,31,13,13,13)),(new OrderDetail(initial.products[0],3))),
                 new Order("1",initial.customers[1],(new DateTime(2024,12,24)),(new OrderDetail(initial.products[1],3))),
                 new Order("2",initial.customers[2],(new DateTime(2025,5,5)),(new OrderDetail(initial.products[2],3)))
                 }
        };
    }
   

}
